package cn.lopr.hfbdqn.route;

import cn.lopr.hfbdqn.common.Result;
import cn.lopr.hfbdqn.pojo.Comment;
import cn.lopr.mvc.frame.annotaion.Param;
import cn.lopr.mvc.frame.annotaion.RequestBody;
import cn.lopr.mvc.frame.annotaion.Route;

/**
 * @author shuangyang7
 * @date 2021/7/19 11:24
 */
@Route("/comment")
public interface CommentRoute {
    Result<?> getByMovieId(@Param(paramName = "movie_id") Integer movieId);

    Result<?> getCommentByMovieId(@Param(paramName = "movie_id") Integer movieId,
                                  @Param(paramName = "is_all") boolean isAll);

    @RequestBody
    Result<?> addComment(Comment comment);

    Result<?> getCommentById(@Param(paramName = "id") Integer id);
}
